cat pay.txt |\
    awk 'NR==1{printf"%10s %10s %10s %10s %10s\n",$1,$2,$3,$4,"Total"}
        NR>=2{total=$2+$3+$4;printf"%10s %10s %10s %10s %10s\n",$1,$2,$3,$4,total}'
